package com.ds.infra.rpc.annotation;

/**
 * 作用：负载均衡策略枚举
 *
 * @author WeiShaoying
 */
public enum LoadBalanceStrategy {
    /**
     * 随机选择
     */
    RANDOM("randomLoadBalance"),

    /**
     * 轮询选择
     */
    ROUND_ROBIN("roundRobinLoadBalance"),

    /**
     * 一致性哈希（预留）
     */
    CONSISTENT_HASH("consistentHashLoadBalance");

    private final String beanName;

    public String getBeanName() {
        return beanName;
    }

    LoadBalanceStrategy(String beanName) {
        this.beanName = beanName;
    }

}
